package com.mc.kotlinlearn

/**
 * Created by zhangzhenguo on 2017/11/27.
 */
class User constructor(lastName: String, no: Int, heiht: Float) {
    var lastName = lastName
        get() = field.toUpperCase()   // 将变量赋值后转换为大写
        set

    var no = no
        get
        set
    var heiht = heiht
        private set
}